Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ICS20 Transfer v2 message #2102

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

kulikthebird
Copy link
Contributor

No description provided.

@kulikthebird kulikthebird force-pushed the tkulik/feat/ics_20_tranfer_v2 branch 3 times, most recently from 61661b9 to dbc5a20 Compare January 27, 2025 11:48
@kulikthebird kulikthebird force-pushed the tkulik/feat/ics_20_tranfer_v2 branch from dbc5a20 to e1c44e8 Compare January 27, 2025 12:42
@kulikthebird kulikthebird marked this pull request as ready for review January 27, 2025 14:46
@kulikthebird kulikthebird force-pushed the tkulik/feat/ics_20_tranfer_v2 branch from f05e87e to d925bbc Compare January 30, 2025 11:46
Copy link
Collaborator

@chipshort chipshort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Could you add a new test case to TestEncodeIbcMsg?
Also, of course we need to wait for the wasmvm release to merge to main.
Maybe we should setup a development branch here and in wasmvm for this and eureka?

Comment on lines +230 to +233
github.com/CosmWasm/wasmvm/v2 v2.2.2-0.20250127092931-0322ca5cbd27 h1:E7YmMpKjj3wHvtxCesEoCNcg7ft502+U+QSUycqvkDM=
github.com/CosmWasm/wasmvm/v2 v2.2.2-0.20250127092931-0322ca5cbd27/go.mod h1:bMhLQL4Yp9CzJi9A83aR7VO9wockOsSlZbT4ztOl6bg=
github.com/CosmWasm/wasmvm/v2 v2.2.2-0.20250129191107-3c641d99ee15 h1:Bjd0MInujGk6AvWbjDnyCqCJh5UCAzRu7qqfuO+x7fI=
github.com/CosmWasm/wasmvm/v2 v2.2.2-0.20250129191107-3c641d99ee15/go.mod h1:bMhLQL4Yp9CzJi9A83aR7VO9wockOsSlZbT4ztOl6bg=
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a go mod tidy, but that can wait until the actual wasmvm release is ready.

Comment on lines +325 to +332
tokens := []sdk.Coin{}
for _, token := range msg.TransferV2.Tokens {
coin, err := ConvertWasmCoinToSdkCoin(token)
if err != nil {
return nil, errorsmod.Wrap(err, "amount")
}
tokens = append(tokens, coin)
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to use ConvertWasmCoinsToSdkCoins here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants